Extension point processor
Documentation
Extension allowing one to register a new TemplateProcessor.
A TemplateProcessor is a class associated with a format (mime-type or extension) and that can be used to render a DocumentModel via type type of template.
For instance :
<templateProcessor
class="org.nuxeo.template.processors.xdocreport.XDocReportProcessor"
default="true" label="XDocReport processor" name="XDocReportProcessor">
<supportedMimeType>application/vnd.oasis.opendocument.text</supportedMimeType>
<supportedMimeType>application/vnd.openxmlformats-officedocument.wordprocessingml.document</supportedMimeType>
<supportedExtension>odt</supportedExtension>
<supportedExtension>docx</supportedExtension>
</templateProcessor>
Contribution Descriptors
- Class: org.nuxeo.template.api.descriptor.TemplateProcessorDescriptor
Existing Contributions
Contributions are presented in the same order as the registration order on this extension point. This order is displayed before the contribution name, in brackets.
-
<extension point="processor" target="org.nuxeo.template.service.TemplateProcessorComponent"> <documentation>XDocReport Report based template processor</documentation> <templateProcessor class="org.nuxeo.template.processors.xdocreport.XDocReportProcessor" default="true" label="XDocReport processor" name="XDocReportProcessor"> <supportedMimeType>application/vnd.oasis.opendocument.text</supportedMimeType> <supportedMimeType>application/vnd.openxmlformats-officedocument.wordprocessingml.document</supportedMimeType> <supportedMimeType>application/vnd.oasis.opendocument.spreadsheet</supportedMimeType> <supportedExtension>odt</supportedExtension> <supportedExtension>docx</supportedExtension> <supportedExtension>ods</supportedExtension> </templateProcessor> </extension>
-
<extension point="processor" target="org.nuxeo.template.service.TemplateProcessorComponent"> <documentation>JXLS template processor @author Thierry Delprat (td@nuxeo.com)</documentation> <templateProcessor class="org.nuxeo.template.processors.jxls.JXLSTemplateProcessor" default="false" label="JXLS Processor" name="JXLSProcessor"> <supportedMimeType>application/vnd.ms-excel</supportedMimeType> <supportedExtension>xls</supportedExtension> </templateProcessor> </extension>
-
<extension point="processor" target="org.nuxeo.template.service.TemplateProcessorComponent"> <documentation>Identity processor</documentation> <templateProcessor class="org.nuxeo.template.processors.IdentityProcessor" default="false" label="Identity" name="Identity"> </templateProcessor> </extension>